<template>
  <div id="orderForGoods">
    <div class="orderForGoods_top">
      <span>我的订单</span>
      <p>全部订单 ></p>
    </div>
    <div class="orderForGoods_btm">
      <div class="blackIcon" v-for="(icon, index) in icons" :key="index">
        <div class="blackIcon_img">
          <span :class="'iconfont icon-' + icon.name"></span>
        </div>
        <div class="blackIcon_name">
          {{ icon.word }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "OrderForm",
  data() {
    return {
      icons: [
        {
          name: "qianbao",
          word: "待付款",
        },
        {
          name: "daishouhuo",
          word: "待收货",
        },
        {
          name: "liaotian",
          word: "待评价",
        },
        {
          name: "yishoukuan",
          word: "退换退款",
        },
        {
          name: "tuidan",
          word: "回收单",
        },
      ],
    };
  },
};
</script>

<style scoped>
#orderForGoods {
  height: 1.2rem;
  margin: 0.12rem 0.16rem 0;
  background-color: #fff;
  border-radius: 0.16rem;
  overflow: hidden;
}
.orderForGoods_top {
  height: 0.4rem;
  margin: 0.04rem 0.12rem 0;
  font-size: 0.16rem;
  display: flex;
  justify-content: space-between;
}
.orderForGoods_top span {
  display: block;
  height: 0.4rem;
  line-height: 0.4rem;
}
.orderForGoods_top p {
  height: 0.4rem;
  line-height: 0.4rem;
  opacity: 0.6;
  font-size: 0.14rem;
  font-weight: 600;
}
.orderForGoods_btm {
  padding: 0 0.08rem;
  display: flex;
  justify-content: space-between;
}
.blackIcon {
  width: 0.52rem;
  height: 0.6rem;
}
.blackIcon .blackIcon_img {
  width: 0.52rem;
  height: 0.4rem;
  text-align: center;
  line-height: 0.4rem;
}
.blackIcon .blackIcon_name {
  width: 0.52rem;
  height: 0.16rem;
  margin-top: 0.04rem;
  font-size: 0.12rem;
  line-height: 0.16rem;
  text-align: center;
}
.blackIcon_img span {
  font-size: 0.24rem;
}
</style>